<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('包联人列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">

            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('jjm:baolianren:edit')}]];
        var removeFlag = [[${@permission.hasPermi('jjm:baolianren:remove')}]];
        var prefix = ctx + "jjm/baolianren";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "包联人",
                showSearch: false,
                showRefresh: false,
                showToggle: false,
                showColumns: false,
                columns: [{
                    checkbox: false
                },
                {
                    field: 'id',
                    title: 'null',
                    visible: false
                },
                    {
                        field: 'index',
                        title: '编号',
                        formatter: function(value, row, index) {
                            return $.table.serialNumber(index);
                        }
                    },

                {
                    field: 'name',
                    title: '包联人姓名'
                },
                {
                    field: 'phone',
                    title: '手机号'
                },
                {
                    field: 'households',
                    title: '包联户数'
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>